-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Style collapsing sidebar #3322
Style collapsing sidebar #3322
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! Thanks @mfrecchiami!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesone, thanks! Nice trick on the still selectable language 👌
Some small things I found while testing this locally
- The language name is not fully hidden if the menu is collapsed (at least with Firefox)
- The chevron is the other way round if I collapsed the sidebar and reload the page
- The globe is not a icon for "choose language" there is an "offical one"
- The icons in the lower left area do not have the same color as the main menu items (this might be a problem within
solidus_auth_devise
?)
Hi @tvdeyen thanks for your feedback!
We should update the UserS icon with this one: https://fontawesome.com/v4.7.0/icon/users In any case I would split the restyle of bottom left menu, in another PR. TODO:
🙏 thank you |
backend/app/assets/javascripts/spree/backend/components/admin_nav.js
Outdated
Show resolved
Hide resolved
afee0e1
to
0e8eb8f
Compare
Hi @tvdeyen ! |
0e8eb8f
to
81b3442
Compare
You are right. The globe looks better than the official icon. I thought Font Awesome also has a version of the official icon, but they don’t. That’s good for now. Thanks for making these two screens. That really helped to make the decision. I also agree we should move the styling of the bottom menu into a separate PR. And I agree on that we should use larger icons in the main menu as well. But this is also something for later. Again. Great work on this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mfrecchiami @seand7565 thank you for this great addition 👏
It looks good to me, but I left a few non-blocking nitpicks
backend/app/assets/stylesheets/spree/backend/components/_navigation.scss
Outdated
Show resolved
Hide resolved
backend/app/assets/stylesheets/spree/backend/components/_navigation.scss
Outdated
Show resolved
Hide resolved
backend/app/assets/stylesheets/spree/backend/components/_navigation.scss
Outdated
Show resolved
Hide resolved
81b3442
to
a51644e
Compare
a51644e
to
3fa5c8a
Compare
We found some visual bugs with this PR that we are trying to solve into nebulab#28. Once ready, for this PR, I suggest creating a single commit co-authored with everyone involved. We have a lot of commits here but they are kinda reverting each other work several times so I don't think it's actually helping browsing git history. Let me know your thoughts on this. 🙂 |
3fa5c8a
to
65a017d
Compare
Done, I removed transitions for now since they conflict with the jQuery plugin that handles the sticky sidebar elements when a long page is totally scrolled down. I had a real-life conversation with @davidedistefano about this and we both think we can add back transition with other PRs later. This is ready to go in my opinion, I'd just wait @seand7565 @mfrecchiami @jacobherrington and @tvdeyen opinion on squashing commits into a single co-authored one. |
This will add extra space in smaller devices. We are setting a cookie via JS to remember user preferences throught users navigation. Co-authored-by: Michela Frecchiami <michela.frecchiami@gmail.com> Co-authored-by: Sean <seand7565@gmail.com> Co-authored-by: Thomas von Deyen <thomas@vondeyen.com> Co-authored-by: jacobherrington <jacobherringtondeveloper@gmail.com>
24c5373
to
b8e85fb
Compare
Thanks to anyone involved in shipping this feature. We made it! 🎉 |
In the Solidus admin, the admin nav menu or sidebar can be collapsed since this was merged: solidusio/solidus#3322 The expansion and the constriction is based on browser dimensions, cookies and user interactions.
Ref. to @seand7565 PR: #3166
Closes #2961
In the first prototype about this new feature, I want to let the Solidus mark only when the sidebar was collapsed; but then I remember that the logo on header is customizable and many times there are no mark (or no pretty ways) to show in a small place.
So I opted to leave the logo container always visible, also when the user choose to collapse the sidebar: so, no matter if you've uploaded a custom logo or not, and furthermore you know always which admin area you are logged in.
Also the languages select shows in a smart way when the sidebar is collapsed.